package com.eight.homepage.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.eight.common.pojo.ZoneCourse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 向文豪
 * @program: eight-education-parent
 * @description:
 * @date 2023/5/29 18:49
 */
public interface ZoneCourseDao extends BaseMapper<ZoneCourse> {

    List<ZoneCourse> findCourseByZoneId(String id);

    Page<ZoneCourse> findAllCourse(Page<ZoneCourse> zoneCoursePage, @Param("ew") Wrapper<ZoneCourse> wrapper );

    Page<ZoneCourse> findAllZoneCourse(Page<ZoneCourse> zoneCoursePage, @Param("ew") Wrapper<ZoneCourse> wrapper);

    int updateStatus(@Param("id") String zcId,@Param("isDisable") Integer tzcisDisable);
}
